package homework.work1;


public class Demo {
    public static void main(String[] args) {
        Star s = new Star("李四");
        System.out.println(s.name);
    }
}

class Star {
    String name;

    public Star(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        name = "张三";
        return "Star{" +
                "name='" + name + '\'' +
                '}';
    }
}

